package com.dkm.nettysocketdemo.myWebsite.service;

import com.dkm.nettysocketdemo.myWebsite.domain.HelmetClient;
import com.dkm.nettysocketdemo.myWebsite.domain.HelmetGroup;

import java.util.List;

public interface HelmetGroupService {

    /**
     *删除单条安全帽组
     * @param pkGroupId
     * @return
     */
    int deleteById(String pkGroupId);

    /**
     *增加安全帽组
     * @param helmetGroup
     * @return
     */
    int insertHelmetGroup(HelmetGroup helmetGroup, HelmetClient client);

    /**
     *修改安全帽分组
     * @param helmetGroup
     * @return
     */
    int updateHelmetGroup(HelmetGroup helmetGroup,HelmetClient client);

    /**
     *根据id查询安全帽组
     * @param pkGroupId
     * @return
     */
    HelmetGroup findById(String pkGroupId);

    /**
     *分页查询所有安全帽
     * @param helmetGroup
     * @param startTime
     * @param endTime
     * @param page
     * @param limit
     * @return
     */
    List<HelmetGroup> selectAll(HelmetGroup helmetGroup,String startTime,String endTime,Integer page,Integer limit);

    /**
     * 查询总安全帽分组数
     * @param helmetGroup
     * @param startTime
     * @param endTime
     * @return
     */
    Integer rowCount(HelmetGroup helmetGroup,String startTime,String endTime);


    /**
     * 批量删除安全帽分组
     * @param list id集合
     * @return
     */
    int deleteAll(List<String> list);

    List<HelmetGroup> findClientIdAll(String clientId);

    int updateGroupName(String groupName ,String groupId);
}
